package ru.maksb.exchange.domain;

public class MatchResult {
    private String firstOrderReference;
    private MatchType firstMatchType;
    private String secondOrderReference;
    private MatchType secondMatchType;
    private int amount;
    private double price;
    
    public MatchResult() {
    }

    public MatchResult(String firstOrderReference, MatchType firstMatchType,
            String secondOrderReference, MatchType secondMatchType, int amount,
            double price) {
        this.firstOrderReference = firstOrderReference;
        this.firstMatchType = firstMatchType;
        this.secondOrderReference = secondOrderReference;
        this.secondMatchType = secondMatchType;
        this.amount = amount;
        this.price = price;
    }
    
    public String getFirstOrderReference() {
        return firstOrderReference;
    }
    public void setFirstOrderReference(String firstOrderReference) {
        this.firstOrderReference = firstOrderReference;
    }
    public MatchType getFirstMatchType() {
        return firstMatchType;
    }
    public void setFirstMatchType(MatchType firstMatchType) {
        this.firstMatchType = firstMatchType;
    }
    public String getSecondOrderReference() {
        return secondOrderReference;
    }
    public void setSecondOrderReference(String secondOrderReference) {
        this.secondOrderReference = secondOrderReference;
    }
    public MatchType getSecondMatchType() {
        return secondMatchType;
    }
    public void setSecondMatchType(MatchType secondMatchType) {
        this.secondMatchType = secondMatchType;
    }
    public int getAmount() {
        return amount;
    }
    public void setAmount(int amount) {
        this.amount = amount;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    
    @Override
    public String toString() {
        return firstOrderReference + " " +
               firstMatchType + " " +
               secondOrderReference + " " + 
               secondMatchType;
    }
}
